<div mt-layout="{ spacing_open: 0 }" style="width: 100%; height: 100%;">
    <div class="ui-layout-center">
        <!-- Nav tabs -->
        <ul class="nav nav-tabs hidden" role="tablist">
            <li role="presentation" class="active"><a href="#userlist" aria-controls="userlist" role="tab" data-toggle="tab">用户列表</a></li>
            <li role="presentation"><a href="#createuser" aria-controls="createuser" role="tab" data-toggle="tab">新建用户</a></li>
            <li role="presentation"><a href="#modifyuser" aria-controls="modifyuser" role="tab" data-toggle="tab">修改用户</a></li>
        </ul>

        <!-- Tab panes -->
        <div class="tab-content">
            <div role="tabpanel" class="tab-pane fade active in" id="userlist"  mt-layout="{ spacing_open: 0 }" ng-controller="myUserController">
                <div class="ui-layout-north">
                    <ol class="breadcrumb">
                        <li>用户和权限</li>
                        <li><a href="../../user/user">用户管理</a></li>
                        <li class="active">用户列表</li>
                    </ol>
                </div>
                <div class="ui-layout-center" mt-url="tmpl/userlist.html">
                </div>
                <div class="ui-layout-south">
                    <button class="btn btn-primary" href="#createuser" aria-controls="createuser" role="tab" data-toggle="tab"
                       mt-tab>新建用户</button>
                    <button class="btn btn-primary" href="#modifyuser" aria-controls="modifyuser" role="tab"
                       data-toggle="tab" mt-tab ng-disabled="selectedUsers.length!=1">修改用户</button>
                    <button class="btn btn-primary" href="#removeuser" aria-controls="removeuser" data-toggle="modal"
                       mt-tab ng-disabled="selectedUsers.length==0">删除用户</button>
                    <!-- <button class="btn btn-primary" href="#setroles" aria-controls="setroles" role="tab" data-toggle="tab" mt-tab ng-disabled="selectedUsers.length!=1">设置用户角色</button> -->
                    <button class="btn btn-primary" href="#resetpassword" aria-controls="resetpassword" data-toggle="modal"
                            mt-tab ng-disabled="selectedUsers.length!=1">重置密码</button>
                </div>
            </div>
            <div role="tabpanel" class="tab-pane fade" id="createuser" ng-controller="createUserController">
                <ol class="breadcrumb">
                    <li>用户和权限</li>
                    <li><a href="../../user/user">用户管理</a></li>
                    <li class="active">新建用户</li>
                </ol>
                <div mt-url="tmpl/userform.html"></div>
            </div>
            <div role="tabpanel" class="tab-pane fade" id="modifyuser" ng-controller="modifyUserController">
                <ol class="breadcrumb">
                    <li>用户和权限</li>
                    <li><a href="../../user/user">用户管理</a></li>
                    <li class="active">修改用户</li>
                </ol>
                <div mt-url="tmpl/userform.html"></div>
            </div>
            <div role="tabpanel" class="tab-pane fade" id="setroles"
                 mt-layout="{ spacing_open: 0 }" ng-controller="myUserRoleController">
                <div class="ui-layout-north">
                    <ol class="breadcrumb">
                        <li>用户和权限</li>
                        <li><a href="../../user/user">用户管理</a></li>
                        <li class="active">设置用户角色</li>
                    </ol>
                </div>
                <div class="ui-layout-center" mt-url="tmpl/rolelist.html">
                </div>
                <div class="ui-layout-south">
                    <a class="btn btn-primary" href="#userlist" aria-controls="userlist" role="tab" data-toggle="tab" ng-click="ok()">保存</a>&nbsp;
                    <a class="btn btn-default" href="#userlist" aria-controls="userlist" role="tab" data-toggle="tab">取消</a>
                </div>
            </div>
        </div>
    </div>
</div>

<div mt-url="tmpl/removeuserdlg.html" ng-controller="deleteUserController"></div>
<div mt-url="tmpl/resetpassworddlg.html" ng-controller="resetpasswordController"></div>
